package top.hongthorn.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 时间&信息
 * </p>
 *
 * @author 泓宇网络科技工作室
 * @since 2023-12-28 00:47:55
 */
@Data
@TableName("`time`")
@ApiModel(value = "Time对象", description = "时间&信息")
public class Time implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "time_id", type = IdType.AUTO)
    private Integer timeId;

    @ApiModelProperty(value = "时刻", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("moment")
    private Date moment;

    @ApiModelProperty(value = "信息类型1作战 2巡航 3护航", required = true)
    @TableField("message_type")
    private String messageType;

    @ApiModelProperty(value = "事件", required = true)
    @TableField("event")
    private String event;

    @ApiModelProperty(value = "信息来源", required = true)
    @TableField("message_come")
    private String messageCome;
}
